package no9;

import javax.swing.text.Style;

public class MyStringTest {
    public static void main(String[] args) {
        String s1 = "hello java";
        String s2 = "hello java";
        if (s1.equals(s2)){
            String s3 = s1.replace(" ","");
            String s4 = s3.replace("java","word");
            System.out.println(s4);
        }else {

        }

    }
}
